package com.spring.student.register;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class User {
    @Value("20220102001")
    private String number;

    @Value("123456")
    private String password;

    @Value("学生")
    private String identity;

    @Override
    public String toString() {
        return "用户注册成功!\n" +
                "number = " + number + ", password = " + password + ", identity = " + identity;
    }
}